package com.hsmpay.mobile.service.terminal;

import com.hsmpay.common.service.BaseService;
import com.hsmpay.mobile.pojo.terminal.Tchannel;

import java.io.Serializable;

/**
 * 终端通道 服务接口 tchannelService
 * 对应 sqlmap tchannelDao
 *
 * @author 颜铃璋
 * @created 2014-05-20
 */
public interface TchannelService<Entity extends Serializable, Query extends Object> extends BaseService<Entity, Query> {

    /**
     * 根据终端代码  查询通道
     *
     * @param code
     * @return
     * @throws Exception
     */
    public Tchannel searchMobileTchannelByCode(Integer code) throws Exception;

    /**
     * 更新code 修改更新第三方参数
     *
     * @param code
     * @param otherParam
     * @return
     * @throws Exception
     */
    public int updateMobileTcOtherByCode(Integer code, String otherParam) throws Exception;
}
